package org.dromara.admin.domain.vo;

import org.dromara.admin.domain.UserEmergencyContact;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户紧急联系人视图对象 hr_user_emergency_contact
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = UserEmergencyContact.class)
public class UserEmergencyContactVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 用户ID（关联hr_user_detail.id）
     */
    @ExcelProperty(value = "用户ID", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "关=联hr_user_detail.id")
    private Long userId;

    /**
     * 联系人姓名
     */
    @ExcelProperty(value = "联系人姓名")
    private String contactName;

    /**
     * 联系人电话
     */
    @ExcelProperty(value = "联系人电话")
    private String contactPhone;

    /**
     * 与用户关系（父母、配偶、朋友等）
     */
    @ExcelProperty(value = "与用户关系", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "父=母、配偶、朋友等")
    private String relation;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
